package com.app.service;

import com.app.model.AdminUserModel;
import com.app.model.GoodsModel;
import com.app.model.UserModel;
import com.app.vo.GoodsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

/**
 * 商品信息
 * @author 16693103420
 * @since 2024-01-25
 */
public interface GoodsService extends IService<GoodsModel> {
    //商品信息列表  待区域字段判断
    GoodsVo getGoodsList(Integer page, Integer limit, Integer type, String name, AdminUserModel user, Integer areaId,Integer inventory);
    //商品信息详情
    GoodsModel getGoodsById(Integer id);
    @Transactional
    void delGoods(Integer id);


    /**
     * 商品信息列表
     * @param page
     * @param limit
     * @param type
     * @param name
     * @return
     */
    GoodsVo getUserGoodsList(Integer page, Integer limit, Integer type, Integer applyType,String name, HttpServletRequest request,Integer sort);
}
